home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 2
/
AACD 2.iso
/
AACD
/
WebSites
/
Sites
/
Wirenet
/
files
/
FixMDgroups.lha
/
FixMDgroups
Wrap
Text File
|
1998-12-16
|
907b
|
38 lines
/* */
options results
if ~show('L','rexxsupport.library') then do
if ~addlib('rexxsupport.library',0,-30) then call ExitMsg('Failed to open rexxsupport.library')
end
groupfile = 'NetConnect2:Programs/MicroDot-II/Data/Grouplist'
tempfile = 'NetConnect2:Programs/MicroDot-II/Data/FixMDGroups.'time(s)
if ~open(in,groupfile,'R') then call ExitMsg('Failed to open' groupfile)
if ~open(out,tempfile,'W') then call ExitMsg('Failed to create temporary group file')
do until eof(in)
group = readln(in)
if group = '' then iterate
call writeln(out,trim(group)' ')
end
call close(in)
call close(out)
address command
if ~rename(groupfile,groupfile'.old') then call ExitMsg('File rename failure')
if ~rename(tempfile,groupfile) then call ExitMsg('File rename failure')
call delete(tempfile)
call delete(groupfile'.old')
exit
ExitMsg:
parse arg msg
say
say msg
say
exit